<?php
function theme_widget_qf_focus(&$setting,&$smarty){	
	$data =array();
	/*定义模板路径begin*/
	if($system->theme){
        $theme_dir = kernel::get_themes_host_url().'/'.$smarty->theme;
    }else{
        $theme_dir = kernel::get_themes_host_url().'/'.app::get('site')->getConf('current_theme');
    }	
	$data['theme_dir']=$theme_dir;
	/*定义模板路径end*/
	
	foreach($setting['focus'] as $v){
		$v['imgurl'] = str_replace('%THEME%',$theme_dir,$v['imgurl']);
        $data['focus'][] = $v;		
    }
    return $data;
}
?>

